<template>
  <div>
  </div>
</template>
<script>
import utils from '../ttJs/utils.js'

export default {
  data() {
    return {
      token: null,
    }
  },
  mounted: function() {
    var self = this
    self.token = sessionStorage.getItem('token')
    if (utils.validateData(self.token)) {
      self.$router.push({ name: 'Taiqu' })
    } else {
      self.$router.push({ name: 'Login' })
    }
  },
  methods: {}
}

</script>
<style scoped>
.el-header {
  background: #fff;
  color: #333;
  text-align: center;
  line-height: 100px;
}

.el-footer {
  background: #fff;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-header {
  font-size: 22px;
}

.form {
  display: inline-block;
  margin: 0 auto;
  width: 380px;
  background: #fff;
  padding: 10px 40px;
  border-radius: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.el-main {
  position: relative;
  background: url("http://res.zhen-yee.com/zhenyi/login-bg.jpg");
  background-size: cover;
  color: #333;
  text-align: center;
  line-height: 160px;
}

.login-btn {
  cursor: pointer;
  width: 100%;
  margin-top: 22px;
  background: #CCE5E2;
  border-color: #CCE5E2;
  border-radius: 15px;
  color: #7C9A9F;
}

</style>
